<%@page import="siniflar.Ders"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<jsp:useBean id="ogretim" class="siniflar.OgretimUyesi" scope="session" />
<jsp:useBean id="ogretimSonVerilenDersler" type="ArrayList<siniflar.Ders>" scope="session" />

<jsp:include page="../ek_bas.jsp" />
<title>Ödev Listesi</title>
<jsp:include page="ek_menu.jsp" />
<h1 class="icbaslik notlaricon">Ödev Listesi</h1>

<table>
    <tr class="tablobaslik">
        <td class="altkenarlikli">Ders Kodu</td>
        <td class="altkenarlikli">Ders Adı</td>
        <td class="altkenarlikli">Ders Kredisi</td></tr>
    <%
        for(int i=0; i<ogretimSonVerilenDersler.size(); i++){
            out.print("<tr class=\"r"+(i%2)+"\">");
                out.print("<td>" + ogretimSonVerilenDersler.get(i).getDersKodu() + "</td>");
                out.print("<td><a href=\"OdevListesi?dersno="+ogretimSonVerilenDersler.get(i).getId()+"\">"+ogretimSonVerilenDersler.get(i).getDersAdi()+"</a></td>");
                out.print("<td>" + ogretimSonVerilenDersler.get(i).getDersKredi() + "</td>");
            out.print("</tr>");
        }
    %>
</table>
<jsp:include page="../ek_son.jsp" />